package cn.iocoder.yudao.module.fengdong.smartelderly.controller.admin.billing.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


/**
 * 收费记录 Excel VO
 *
 * @author 沣东养老院管理员
 */
@Data
public class BillingExcelVO {

    @ExcelProperty("编号")
    private Long id;

    @ExcelProperty("收费类型")
    private Long type;

    @ExcelProperty("缴费标题")
    private String title;

    @ExcelProperty("缴费人id")
    private Long oldmanId;

    @ExcelProperty("缴费金额")
    private BigDecimal money;

    @ExcelProperty("名称")
    private String oldmanName;

    @ExcelProperty("身份证")
    private String oldmanCard;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("pay_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Long state;

    @ExcelProperty("开始时间")
    private LocalDateTime startTime;

    @ExcelProperty("结束时间")
    private LocalDateTime endTime;

    @ExcelProperty("缴费时间")
    private LocalDateTime payTime;

    @ExcelProperty("缴费内容")
    private String content;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
